{
	name:"Ruler",
	tool:"./paint_tool/ruler.shape",
	onClick(pos){
		let step = this.step
			step.push(pos)
		if(step.length<3)
			this.point(pos,false)
		if(step.length>2)
			this.step=[]
	},
	onMousemove(pos){
		if(!this.step.isEmpty())
			this.refresh(pos)
	}
}